package package1;
 class Cat extends Animal727 {
    public  static String  sex;
    static {
        sex="女";
    }
    {
        System.out.println("给变量赋值的方法的执行------");
    }
    public Cat (String name,int age,String sex){
       super(name,age);
        this.sex=sex;
        System.out.println("执行了子类的构造方法------");
    }
    public void mimi(){
        System.out.println(this.name+"正在咪咪叫------");
    }
    public void fun3(){
        super.fun1();
    }

     @Override
     public String toString() {
         return "Cat{" +
                 "name='" + name + '\'' +
                 ", age=" + age +'\'' +",sex="+sex+
                 '}';
     }
 }
